<template>
  <div class="app-container">
    <!--{{currentRole}}-->
    <!--<amend-pwd v-if="fistFlag == 0"></amend-pwd>-->
    <el-row v-if="perms != 0 && perms != 4">
      <el-col :span="18">
        <div class="bg-purple">
          <el-card shadow="never" class="box-card">
            <div slot="header" class="clearfix">
              <span class="span_text">通知消息</span>
            </div>
            <div>
              暂无通知消息
            </div>
          </el-card>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  components: {
  },
  computed: {
    ...mapGetters([
      'sidebar',
      'avatar',
      'name',
      'fistFlag',
      'perms'
    ])
  },
  data() {
    return {
      currentRole: 'adminDashboard'
    }
  },
  created() {
    /*if (!this.roles.includes('admin')) {
      this.currentRole = 'editorDashboard'
    }*/
  }
}
</script>
<style lang="scss" scoped>
  .bg-purple {
    margin-left: 20px;
  }
  .el-card {
    /deep/.el-card__header {
      padding: 10px 20px;
    }
  }
</style>
